package MyBussiness.MyActions;

import java.util.Iterator;
import java.util.Map;
import java.util.Set;

import javax.servlet.http.HttpServletRequest;

import stucts.Beans.BaseBeans;
import stucts.action.ISAction;
import service.myService.MessageVO;
import service.myService.panduan.panduanService;
import service.myService.panduan.panduanServiceImp;



public class PanduanAction implements ISAction {

	public String execute(HttpServletRequest request, BaseBeans baseBean, Map<String,String> forwordmap) {
		// TODO Auto-generated method stub
		String url="";
		panduanService service = new panduanServiceImp();
		Map<String, MessageVO> map = service.getVO(baseBean);
		Set<String> set = map.keySet();
		String result="";
		for(Iterator<String>it = set.iterator(); it.hasNext();){
			result = it.next();
            url=forwordmap.get(result);				
			request.setAttribute("mess", map.get(result));
		}
		return url;
	}
	


}
